<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * User
 *
 * @ORM\Table(name="user", options={"comment":"用户表"})
 * @ORM\Entity()
 */
class User
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="text",  nullable=true, options={"comment":"昵称"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="pet_name", type="text",  nullable=true, options={"comment":"宠物昵称"})
     */
    private $pet_name;

    /**
     * @var string
     *
     * @ORM\Column(name="pet_classify_name", type="text",  nullable=true, options={"comment":"宠物类别"})
     */
    private $pet_classify_name;

    /**
     * @var string
     *
     * @ORM\Column(name="age", type="string", length=11, options={"comment":"宠物年龄"})
     */
    private $age;

    /**
     * @var string
     *
     * @ORM\Column(name="mobile", type="string", length=11, options={"comment":"手机号"})
     */
    private $mobile;

    /**
     * @var string
     *
     * @ORM\Column(name="password", type="string", length=40, nullable=true, options={"comment":"sha1(md5($password))"})
     */
    private $password;

    /**
     * @var string
     *
     * @ORM\Column(name="token", type="string", length=40, nullable=true, options={"comment":"token"})
     */
    private $token;
    
    /**
     * @var string
     *
     * @ORM\Column(name="avatar", type="string", length=255, nullable=true, options={"comment"="头像"})
     */
    private $avatar;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", nullable=true, options={"default":1, "comment":"状态位: 0禁用 1正常"})
     */
    private $status;
    
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;
}
